package com.lenovo.testreport.qa.web.compatibility.mapper;

import com.lenovo.testreport.qa.web.compatibility.model.QaWebCompatibilityReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author CJF
 * @date 2018/11
 */

@Mapper
public interface QaWebCompatibilityReportMapper {
    int deleteByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int insert(@Param("tablename") String tablename, QaWebCompatibilityReport record);

    int insertSelective(@Param("tablename") String tablename, QaWebCompatibilityReport record);

    QaWebCompatibilityReport selectByPrimaryKey(@Param("tablename") String tablename, Integer rid);

    int updateByPrimaryKeySelective(@Param("tablename") String tablename, QaWebCompatibilityReport record);

    int updateByPrimaryKey(@Param("tablename") String tablename, QaWebCompatibilityReport record);

    List<QaWebCompatibilityReport> selectAllReport(@Param("tablename") String tablename);

    List<QaWebCompatibilityReport> selectByType(@Param("tablename") String tablename, String type);

    int selectMaxId(@Param("tablename") String tablename);

    List<QaWebCompatibilityReport> selectAllReportByTime(@Param("tablename") String tablename, String start, String end, String version);

    List<String> selectAllVersion(@Param("tablename") String tablename);

}